#ifndef AED_RENDERCOMP_H
#define AED_RENDERCOMP_H

#include <QtGui>
#include <QTextStream>
#include <aed_image.h>
#include <QDomDocument>
#include <imagemanager.h>
using namespace std;

class AED_RenderComp
{
    AED_Image *m_image;
    bool m_visible;
    bool m_text;
    int  m_layer;
    float m_alpha;

    bool m_enabled;
public:
    AED_RenderComp();
    AED_RenderComp& operator =(const AED_RenderComp &comp);

    AED_Image* GetImage();
    void SetImage(AED_Image *img);

    bool GetVisible();
    void SetVisible(bool vis);

    bool GetText();
    void SetText(bool text);

    int GetLayer();
    void SetLayer(int layer);

    float GetAlpha();
    void SetAlpha(float alpha);

    bool IsEnabled();
    void SetEnabled(bool enabled);

    void Save(QTextStream &file);
    void Save(QDomDocument &doc, QDomElement &pelem);

    void Load(QDomElement &celem, ImageManager &imgmngr);
};

#endif // AED_RENDERCOMP_H
